package com.ganyu.service.impl;

import com.ganyu.utils.SecurityUtils;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("ps")
public class PermissionService {

    /**
     * 判断当前用户是否具有permission
     * @return
     */
    public boolean hasPermission(){
        //如果是超级管理员  直接返回true
        if(SecurityUtils.isAdmin()){
            return true;
        }
        //否则
        return false;
    }
}